package xyc.sjxy.service;

import xyc.sjxy.pojo.Users;

import javax.servlet.http.HttpServletResponse;
import java.sql.SQLException;
import java.util.List;

public interface UserServices {
    Users getById(Integer id) throws SQLException;
    Boolean validate(String username, String password) throws SQLException;
    List<Users> getAll();
    int add(Users users) throws SQLException;
    int edit(Users users) throws SQLException;
    int del(Integer id);
    int editPwd(Users users) throws SQLException;

    Users getByUserName(String username) throws SQLException;

    int  edit_pic(Users t) throws SQLException;
}
